/**
  * @Description: WoShop商城
  * @Author: 梧桐
  * @Copyright: 武汉一一零七科技有限公司©版权所有
  * @Link: www.wo-shop.net
  * @Contact: QQ:2487937004
  */
 <template>
  <view style="padding:0 24upx">
 
    		<u-parse :html="content"></u-parse>
  </view>
</template>

<script>
export default {
  data() {
    return {
      content: "",
      title: "",
      id: ""
    };
  },
  onLoad(option) {
    this.id = option.id;
    this.init();
  },
  methods: {
    init() {
      this.$http
        .getNotificationInfo({
          id: this.id
        })
        .then(res => {
          if (res.status == 200) {
            this.content = res.data.content;
            this.title = res.data.title;
            console.log(this.title);
			uni.setNavigationBarTitle({
			  title: this.title
			});
          }
        });
    },
     
  }
};
</script>

<style scoped>
page {
  background: #fff;
  padding-top: 30upx;
}
.title {
  font-size: 34upx;
  color: #333;
  line-height: 42upx;
  margin: 20upx 0 40upx;
  text-align: center;
}
</style>
